import axios from '~/axios'

//添加企业注册信息
export function addEnterpriseRegistrationApi(data) {
    return axios.post('/basic/lindi/enterpriseRegistration/addEnterpriseRegistration', data)
}

//删除企业注册信息
export function deleteEnterpriseRegistrationByEnterpriseRegistrationIdApi(enterpriseRegistrationId) {
    return axios({
        method: 'DELETE',
        url: '/basic/lindi/enterpriseRegistration/deleteEnterpriseRegistrationByEnterpriseRegistrationId',
        params: {
            enterpriseRegistrationId: enterpriseRegistrationId
        }
    })
}

//修改企业注册信息
export function updateEnterpriseRegistrationByEnterpriseRegistrationIdApi(data) {
    return axios.put('/basic/lindi/enterpriseRegistration/updateEnterpriseRegistrationByEnterpriseRegistrationId', data)
}

//获取企业注册信息列表 - 分页
export function getPageEnterpriseRegistrationListApi(params) {
    return axios({
        method: 'GET',
        url: '/basic/lindi/enterpriseRegistration/getPageEnterpriseRegistrationList',
        params: params
    })
}

//获取企业注册信息详细信息
export function getEnterpriseRegistrationByEnterpriseRegistrationIdApi(enterpriseRegistrationId) {
    return axios.get(`/basic/lindi/enterpriseRegistration/getEnterpriseRegistrationByEnterpriseRegistrationId/${enterpriseRegistrationId}`)
}

//审核企业注册信息
export function auditEnterpriseRegistrationApi(data) {
    return axios.post('/basic/lindi/enterpriseRegistration/auditEnterpriseRegistration', data)
}
